import request from '@/utils/request'

// 查询办理进度列表
export function listWorkProcess(query) {
  return request({
    url: '/house_sale/WorkProcess/list',
    method: 'get',
    params: query
  })
}

// 查询办理进度详细
export function getWorkProcess(processid) {
  return request({
    url: '/house_sale/WorkProcess/' + processid,
    method: 'get'
  })
}

// 新增办理进度
export function addWorkProcess(data) {
  return request({
    url: '/house_sale/WorkProcess',
    method: 'post',
    data: data
  })
}

// 修改办理进度
export function updateWorkProcess(data) {
  return request({
    url: '/house_sale/WorkProcess',
    method: 'put',
    data: data
  })
}

// 删除办理进度
export function delWorkProcess(processid) {
  return request({
    url: '/house_sale/WorkProcess/' + processid,
    method: 'delete'
  })
}
